<?php

namespace app\admin\validate;

use think\Validate;

class Admins extends Validate
{
    protected $rule =   [
        'username'  => 'require',
        'password'   => 'number',
        'captcha' => 'require',
    ];
    protected $message  =   [
        'username.require' => '用户名不能为空',
        'password.number'   => '密码必须是数字',
        'captcha.require'        => '验证码不能为空',
    ];
}
